package org.snail.attendence.bean;

import lombok.ToString;
import org.springframework.util.StringUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * ali工时
 * Created by WJ on 2017/11/13.
 */

@ToString
public class AttendenceCountDO implements Serializable{
    private int id;               //主键
    private int attId;               //考勤主表id
    private Double attendanceDay;  //出勤天数
    private Double freeDay;    //休息天数
    private int attendenceMin;   //工作时长(分钟)
    private int tardinessCount;   //迟到次数
    private int tardinessMin;   //迟到时长(分钟)
    private int criticalTardinessCount;   //严重迟到次数
    private int criticalTardinessMin;   //严重迟到时长(分钟)
    private Double absenteeismAndTardinessDay;   //旷工迟到天数
    private int leaveCount;  //早退次数
    private Double leaveMin;   //早退时长(分钟)
    private Double missingCount;  //上班缺卡次数
    private Double missingCount2;  //下班缺卡次数
    private Double absenteeismDay;   //旷工天数
    private Double outHour; //外出(小时）
    private Double leaveDay;    //事假(天)
    private Double leaveHour;  //事假(小时)
    private Double maternityLeaveHour;   //产假(小时)
    private Double otherLeaveHour;//其他(小时)
    private Double marriageLeaveHour; //婚假(小时)
    private Double annualLeaveDay; //年假(天)
    private  Double annualLeaveHour;   //年假(小时)
    private Double sickLeaveHour;   //病假(小时)
    private Double overDay;    //调休(天)
    private Double overHour;   //调休(小时)
    private Double journeyHour;  //路途假(小时)
    private Double paternityLeaveHour;   //陪产假(小时)
    private Double overtimeApprovalHour; //加班-审批单统计(小时）
    private Double weekdayOverHour; //工作日加班(小时)
    private Double weekendOverHour;//休息日加班(小时)
    private Double festivalOverHour;   //节假日加班(小时)
    private Double wxLeaveHour;       //微信事假（小时数）
    private Double weekOverHourApproval;//不可调休工作日加班
    private Double weekendOverHourApproval;//不可调休周末加班
    private Double vocationOverHourApproval;//不可调休节假日加班
    private Date updateTime;

    public void setUpdateTime(Date date){
        updateTime = date;
    }
    public Date getUpdateTime(){
        return updateTime;
    }

    public Double getWeekOverHourApproval(){
        return weekOverHourApproval;
    }

    public void setWeekOverHourApproval(String weekOverHourApprovalDemo){
        double weekOverHourApproval = 0.0;
        if(!StringUtils.isEmpty(weekOverHourApprovalDemo)){
            weekOverHourApproval = Double.valueOf(weekOverHourApprovalDemo);
        }
        this.weekOverHourApproval = weekOverHourApproval;
    }
    public Double getWeekendOverHourApproval(){
        return weekendOverHourApproval;
    }

    public void setWeekendOverHourApproval(String weekendOverHourApprovalDemo){
        double weekendOverHourApproval = 0.0;
        if(!StringUtils.isEmpty(weekendOverHourApprovalDemo)){
            weekendOverHourApproval = Double.valueOf(weekendOverHourApprovalDemo);
        }
        this.weekendOverHourApproval = weekendOverHourApproval;
    }

    public Double getVocationOverHourApproval(){
        return vocationOverHourApproval;
    }

    public void setVocationOverHourApproval(String vocationOverHourApprovalDemo){
        double vocationOverHourApproval = 0.0;
        if(!StringUtils.isEmpty(vocationOverHourApprovalDemo)){
            vocationOverHourApproval = Double.valueOf(vocationOverHourApprovalDemo);
        }
        this.vocationOverHourApproval = vocationOverHourApproval;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAttId() {
        return attId;
    }

    public void setAttId(int attId) {
        this.attId = attId;
    }

    public Double getAttendanceDay() {
        return attendanceDay;
    }

    public void setAttendanceDay(String attendanceDayDemo) {
        Double attendanceDay = 0.0;
        if (!StringUtils.isEmpty(attendanceDayDemo))
               attendanceDay= Double.valueOf(attendanceDayDemo);
        this.attendanceDay = attendanceDay;
    }

    public Double getFreeDay() {
        return freeDay;
    }

    public void setFreeDay(String freeDay1) {
        Double freeDay = 0.0;
        if (!StringUtils.isEmpty(freeDay1))
                freeDay =Double.parseDouble(freeDay1);
        this.freeDay = freeDay;
    }

    public int getAttendenceMin() {
        return attendenceMin;
    }

    public void setAttendenceMin(String attendenceMin1) {
        int attendenceMin = 0;
        if (!StringUtils.isEmpty(attendenceMin1))
                attendenceMin=Integer.parseInt(attendenceMin1);
        this.attendenceMin = attendenceMin;
    }

    public int getTardinessCount() {
        return tardinessCount;
    }

    public void setTardinessCount(String tardinessCount1) {
        int tardinessCount = 0;
        if (!StringUtils.isEmpty(tardinessCount1))
                tardinessCount =Integer.parseInt(tardinessCount1);
        this.tardinessCount = tardinessCount;
    }

    public int getTardinessMin() {
        return tardinessMin;
    }

    public void setTardinessMin(String tardinessMin1) {
        int tardinessMin = 0;
        if (!StringUtils.isEmpty(tardinessMin1))
            tardinessMin = Integer.parseInt(tardinessMin1);
        this.tardinessMin = tardinessMin;
    }

    public int getCriticalTardinessCount() {
        return criticalTardinessCount;
    }

    public void setCriticalTardinessCount(String criticalTardinessCount1) {
        int criticalTardinessCount = 0;
        if (!StringUtils.isEmpty(criticalTardinessCount1)){
            criticalTardinessCount = Integer.parseInt(criticalTardinessCount1);
        }
        this.criticalTardinessCount = criticalTardinessCount;
    }

    public int getCriticalTardinessMin() {
        return criticalTardinessMin;
    }

    public void setCriticalTardinessMin(String criticalTardinessMin1) {
        int criticalTardinessMin = 0;
        if (!StringUtils.isEmpty(criticalTardinessMin1))
            criticalTardinessMin=Integer.parseInt(criticalTardinessMin1);
        this.criticalTardinessMin = criticalTardinessMin;
    }

    public Double getAbsenteeismAndTardinessDay() {
        return absenteeismAndTardinessDay;
    }

    public void setAbsenteeismAndTardinessDay(String absenteeismAndTardinessDay1) {
        Double absenteeismAndTardinessDay = 0.0;
        if (!StringUtils.isEmpty(absenteeismAndTardinessDay1)){
            absenteeismAndTardinessDay = Double.parseDouble(absenteeismAndTardinessDay1);
        }
        this.absenteeismAndTardinessDay = absenteeismAndTardinessDay;
    }

    public int getLeaveCount() {
        return leaveCount;
    }

    public void setLeaveCount(String leaveCount1) {
        int leaveCount = 0;
        if (!StringUtils.isEmpty(leaveCount1))
            leaveCount=Integer.parseInt(leaveCount1);
        this.leaveCount = leaveCount;
    }

    public Double getLeaveMin() {
        return leaveMin;
    }

    public void setLeaveMin(String leaveMin1) {
        Double leaveMin = 0.0;
        if (!StringUtils.isEmpty(leaveMin1))
               leaveMin= Double.parseDouble(leaveMin1);
        this.leaveMin = leaveMin;
    }

    public Double getMissingCount() {
        return missingCount;
    }

    public void setMissingCount(String missingCount1) {
        Double missingCount = 0.0;
        if (!StringUtils.isEmpty(missingCount1))
            missingCount=Double.parseDouble(missingCount1);
        this.missingCount = missingCount;
    }

    public Double getMissingCount2() {
        return missingCount2;
    }

    public void setMissingCount2(String missingCount2Demo) {
        Double missingCount2 = 0.0;
        if (!StringUtils.isEmpty(missingCount2Demo))
            missingCount2=Double.parseDouble(missingCount2Demo);
        this.missingCount2 = missingCount2;
    }

    public Double getAbsenteeismDay() {
        return absenteeismDay;
    }

    public void setAbsenteeismDay(String absenteeismDayDemo) {
        Double absenteeismDay = 0.0;
        if (!StringUtils.isEmpty(absenteeismDayDemo)){
            absenteeismDay = Double.parseDouble(absenteeismDayDemo);
        }
        this.absenteeismDay = absenteeismDay;
    }

    public Double getOutHour() {
        return outHour;
    }

    public void setOutHour(String outHour1) {

        Double outHour = 0.0;
        if (!StringUtils.isEmpty(outHour1)){
            outHour = Double.valueOf(outHour1);
        }
        this.outHour = outHour;
    }

    public Double getLeaveDay() {
        return leaveDay;
    }

    public void setLeaveDay(String leaveDay1) {
        Double leaveDay = 0.0;
        if (!StringUtils.isEmpty(leaveDay1))
            leaveDay=Double.parseDouble(leaveDay1);
        this.leaveDay = leaveDay;
    }

    public Double getLeaveHour() {
        return leaveHour;
    }

    public void setLeaveHour(String leaveHour1) {
        Double leaveHour = 0.0;
        if (!StringUtils.isEmpty(leaveHour1))
            leaveHour=Double.parseDouble(leaveHour1);
        this.leaveHour = leaveHour;
    }

    public Double getMaternityLeaveHour() {
        return maternityLeaveHour;
    }

    public void setMaternityLeaveHour(String maternityLeaveHour1) {

        Double maternityLeaveHour = 0.0;
        if (!StringUtils.isEmpty(maternityLeaveHour1)){
            maternityLeaveHour = Double.parseDouble(maternityLeaveHour1);
        }
        this.maternityLeaveHour = maternityLeaveHour;
    }

    public Double getOtherLeaveHour() {
        return otherLeaveHour;
    }

    public void setOtherLeaveHour(String otherLeaveHour1) {
        Double otherLeaveHour = 0.0;
        if (!StringUtils.isEmpty(otherLeaveHour1)){
            otherLeaveHour = Double.parseDouble(otherLeaveHour1);
        }
        this.otherLeaveHour = otherLeaveHour;
    }

    public Double getMarriageLeaveHour() {
        return marriageLeaveHour;
    }

    public void setMarriageLeaveHour(String marriageLeaveHour1) {
        Double marriageLeaveHour = 0.0;
        if (!StringUtils.isEmpty(marriageLeaveHour1)){
            marriageLeaveHour=Double.parseDouble(marriageLeaveHour1);
        }

        this.marriageLeaveHour = marriageLeaveHour;
    }

    public Double getAnnualLeaveDay() {
        return annualLeaveDay;
    }

    public void setAnnualLeaveDay(String annualLeaveDay1) {
        Double annualLeaveDay = 0.0;
        if (!StringUtils.isEmpty(annualLeaveDay1)){
            annualLeaveDay=Double.parseDouble(annualLeaveDay1);
        }
        this.annualLeaveDay = annualLeaveDay;
    }

    public Double getAnnualLeaveHour() {
        return annualLeaveHour;
    }

    public void setAnnualLeaveHour(String annualLeaveHour1) {
        Double annualLeaveHour = 0.0;
        if (!StringUtils.isEmpty(annualLeaveHour1)){
            annualLeaveHour=Double.parseDouble(annualLeaveHour1);
        }
        this.annualLeaveHour = annualLeaveHour;
    }

    public Double getSickLeaveHour() {
        return sickLeaveHour;
    }

    public void setSickLeaveHour(String sickLeaveHour1) {
        Double sickLeaveHour = 0.0;
        if (!StringUtils.isEmpty(sickLeaveHour1)){
            sickLeaveHour =Double.parseDouble(sickLeaveHour1);
        }
        this.sickLeaveHour = sickLeaveHour;
    }

    public Double getOverDay() {
        return overDay;
    }

    public void setOverDay(String overDay1) {
        Double overDay = 0.0;
        if (!StringUtils.isEmpty(overDay1)){
            overDay=Double.parseDouble(overDay1);
        }

        this.overDay = overDay;
    }

    public Double getOverHour() {
        return overHour;
    }

    public void setOverHour(String overHour1) {
        Double overHour = 0.0;
        if(!StringUtils.isEmpty(overHour1)){
            overHour = Double.parseDouble(overHour1);
        }
        this.overHour = overHour;
    }

    public Double getJourneyHour() {
        return journeyHour;
    }

    public void setJourneyHour(String journeyHour1) {
        Double journeyHour = 0.0;
        if (!StringUtils.isEmpty(journeyHour1)){
            journeyHour = Double.parseDouble(journeyHour1);
        }

        this.journeyHour = journeyHour;
    }

    public Double getPaternityLeaveHour() {
        return paternityLeaveHour;
    }

    public void setPaternityLeaveHour(String paternityLeaveHour1) {
        Double paternityLeaveHour = 0.0;
        if (!StringUtils.isEmpty(paternityLeaveHour1)){
            paternityLeaveHour =Double.parseDouble(paternityLeaveHour1);
        }

        this.paternityLeaveHour = paternityLeaveHour;
    }

    public Double getOvertimeApprovalHour() {
        return overtimeApprovalHour;
    }

    public void setOvertimeApprovalHour(String overtimeApprovalHour1) {
        Double overtimeApprovalHour = 0.0;
        if (!StringUtils.isEmpty(overtimeApprovalHour1)){
            overtimeApprovalHour= Double.parseDouble(overtimeApprovalHour1);
        }

        this.overtimeApprovalHour = overtimeApprovalHour;
    }

    public Double getWeekdayOverHour() {
        return weekdayOverHour;
    }

    public void setWeekdayOverHour(String weekdayOverHour1) {
        Double weekdayOverHour = 0.0;
        if (!StringUtils.isEmpty(weekdayOverHour1)){
            weekdayOverHour =Double.parseDouble(weekdayOverHour1);
        }
        this.weekdayOverHour = weekdayOverHour;
    }

    public Double getWeekendOverHour() {
        return weekendOverHour;
    }

    public void setWeekendOverHour(String weekendOverHour1) {
        Double weekendOverHour = 0.0;
        if (!StringUtils.isEmpty(weekendOverHour1)){
            weekendOverHour= Double.parseDouble(weekendOverHour1);
        }
        this.weekendOverHour = weekendOverHour;
    }

    public Double getFestivalOverHour() {
        return festivalOverHour;
    }

    public void setFestivalOverHour(String festivalOverHour1) {
        Double festivalOverHour = 0.0;
        if (!StringUtils.isEmpty(festivalOverHour1)){
            festivalOverHour =  Double.parseDouble(festivalOverHour1);
        }
        this.festivalOverHour = festivalOverHour;
    }


    public Double getWxLeaveHour() {
        return wxLeaveHour;
    }

    public void setWxLeaveHour(Double wxLeaveHour) {
        this.wxLeaveHour = wxLeaveHour;
    }
}
